<%@page import = "com.Service.BO.OrganizationBO"%>
<%@page import="java.util.Iterator"%>
<%@page import="java.util.List"%>
<%@page  import= "com.ServiceController.ListOrganController"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <title>Service Directory</title>
        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
        <style media="all" type="text/css">
            @import "css/all.css";#main #middle #center-column form .table .listing tr .first.style1 a {
                color: #00F;
            }
            .tableHeading2 {
                font-weight: bold;
                font-variant: normal;
            }
        </style>
    </head>
    <body>
        <div id="main">

            <div id="header">
                <a href="index.html" class="logo"><img src="img/logo.png" width="954" height="112" alt="" /></a>


            </div>
            <div id="middle">
                <div id="left-column">
                    <h3>Home</h3>
                    <ul class="nav">
                        <li><a href="ListOrganController">Organization</a></li>
                        <li></li>
                        <li><a href="Services.jsp">Services</a></li>
                        <li><a href="Premises.jsp">Premises</a></li>
                        <li><a href="#">Forum</a>			    </li>
                        <li class="last"><a href="#">Fsoft Mail</a></li>
                    </ul>
                    <h3>Geograpphy</h3>
                    <ul class="nav">
                        <li><a href="TRegion.jsp">Trust region</a></li>

                        <li><a href="GovRegion.jsp">Government Region</a></li>
                    </ul>
                    <a href="#" class="link">Help</a>
                    <a href="index.jsp" class="link">Logout</a>
                </div>
                <div></div>
               


                <div id="center-column"><br />
                    <form id ="foo" name="foo" action="SpecialismController" method="post">
                        <div class="table">
                            <img src="img/bg-th-left.gif" width="8" height="7" alt="" class="left" />
                            <img src="img/bg-th-right.gif" width="7" height="7" alt="" class="right" />
                            <div class="table"> <img src="file:///Macintosh HD/Users/michaelomar/Downloads/free-admin-template/admin-template/img/bg-th-left.gif" width="8" height="7" alt="" class="left" /> <img src="file:///Macintosh HD/Users/michaelomar/Downloads/free-admin-template/admin-template/img/bg-th-right.gif" width="7" height="7" alt="" class="right" />
                                <table class="listing" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <th colspan="5" class="first">ORGANIZATION LIST</th>
                                    </tr>
                                    <tr>
                                        <td colspan="5" class="first style1">
                                            <a href = "" style = "text-decoration:none">All</a> 
                                            <a href = "" name="" style = "text-decoration:none">| 0-9 </a>
                                            <a href = "" style = "text-decoration:none">| A B C D E</a> 
                                            <a href = "" style = "text-decoration:none">| F G H I J </a> 
                                            <a href = "" style = "text-decoration:none"> | K L M N </a> 
                                            <a href = "" style = "text-decoration:none">| O P Q R </a> 
                                            <a href = "" style = "text-decoration:none">| S T U V </a> 
                                            <a href = "" style = "text-decoration:none">| W X Y Z</a> | 
                                            <input type="submit" name="Create" id="Create" value="Create" /> 
                                            <input type="checkbox" name="Inactive" id="Inactive" />
                                            <label for="Inactive">include In-Active </label></td>
                                    </tr>

                                    <tr class="tableHeading2">
                                        <td width="177" class="first style2">Organization Name</td>
                                        <td>Head Office Address line 1</td>
                                        <td>Post Code</td>
                                        <td>Contacts</td>
                                        <td>Is Active</td>
                                    </tr>
                                    <%
                                        List list = (List) request.getAttribute("OrganList");
                                        Iterator item = list.iterator();
                                        while (item.hasNext()) {
                                            OrganizationBO use = (OrganizationBO) item.next();
                                            String name = use.getName();
                                            String add = use.getAddline1();
                                            String post = use.getPostcode();
                                            String contact = use.getCity();
                                            String is = use.getIsActive();
                                    %>
                                    <tr>
                                        <td class="first style3"><%=name%></td>
                                        <td><%=add%></td>
                                        <td><%=post%></td>
                                        <td><%=contact%></td>
                                        <td><%=is%></td>
                                    </tr>
                                    <%
                                        }
                                    %>
                                </table>
                                <div class="select"> <strong>Other Pages: </strong>
                                    <select name="select">
                                        <option>1</option>
                                    </select>
                                </div>
                            </div>
                    </form>
                    <p>&nbsp;</p>
                </div>
            </div>
            <div id="right-column">
                <strong class="h">INFO</strong>
                <div class="box">This screen is to add a contact details for an organization </div>
            </div>
        </div>
        <div id="footer">
            <p>&nbsp;</p>
            <p>&nbsp;</p>
        </div>
    </body>
</html>
